import { HomePageRender, SectorPageRender } from "./PageRender";

const routes = [{
    url: "/",
    handler: async (req, res) => {
        const r = new HomePageRender(req, res);
        return await r.render();
    }
}, {
    url: "/sector/*",
    handler: async (req, res) => {
        const r = new SectorPageRender(req, res);
        const html = await r.render();
        return html;
    }
}]

export default routes;